const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  // 这个name属性的值，又是冲state.user 这个是一个模块
  name: state => state.user.name,
  heima: () => '测试数据',
  testApp: state => state.app.testApp
}
export default getters
